import { baseUrl } from "./base"
const login_mock = [
	// 登录
	{
			   url:`${baseUrl}/login`,
			   method:'get',
			   response:(res)=>{
				   console.log(res)
				   if(res.query.account.includes('11')){
						return {
							code:200,
							message:"",
							data:{
								token:"111111111111111111111a",
								userInfo:{
									username:"小跳骚",
									account:res.query.account,
									avator:'https://img2.baidu.com/it/u=787651799,53228844&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500'
								}
							}
						}
				   }else{
					   return {
						   code:400,
						   message:"登录信息异常",
						   data:{
							   msg:'账户或密码错误！'
						   }
					   }
				   }
			   }
	}
]

export default login_mock